package com.gmall.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gmall.common.result.Result;
import com.gmall.model.product.BaseTrademark;
import com.gmall.product.mapper.BaseTrademarkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

@Service
public class BaseTrademarkService {


    @Autowired
    BaseTrademarkMapper trademarkMapper;

    public Result<Page<BaseTrademark>> query(Long pageNo, Long  pageSize){
        Page<BaseTrademark> page = new Page<>(pageNo,pageSize)  ;

        QueryWrapper<BaseTrademark> queryWrapper = new QueryWrapper<>();
        Page<BaseTrademark> baseTrademarkPage = trademarkMapper.selectPage(page, queryWrapper);

        return Result.ok(baseTrademarkPage);
    }

}
